package com.funny.service;

import com.funny.app.LocalTest;
import com.funny.mapper.LocalTestMapper;
import org.springframework.stereotype.Service;

/**
 * @author fanxiao  2022/1/17
 * @since 1.0.0
 */
@Service
public class LocalTestService {

	private final LocalTestMapper localTestMapper;

	public LocalTestService(LocalTestMapper localTestMapper) {
		this.localTestMapper = localTestMapper;
	}

	public void insert(LocalTest localTest){
		localTestMapper.insert(localTest);
	}

	public LocalTest selectById(Long id) {
		return localTestMapper.selectById(id);
	}

	public void updateNameById(String name, Long id){
		localTestMapper.updateNameById(name, id);
	}
}